package com.xdb.sqlparser.ast.statement;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.AbstractSQLObjectImpl;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class SQLAlterTableAddColumn extends AbstractSQLObjectImpl implements SQLAlterTableItem {

	private final List<SQLColumnDefinition> columns = new ArrayList<SQLColumnDefinition>();

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, columns);
		}
		visitor.endVisit(this);
	}

	public List<SQLColumnDefinition> getColumns() {
		return columns;
	}

}
